import request from '@/utils/request'

// 获取分类
export const getCategoryService = () => request.get('home/category/head')

// 获取轮播图数据
export const getBannerService = (params = {}) => {
  const { distributionSite = '1' } = params
  return request.get('/home/banner', {
    params: {
      distributionSite
    }
  })
}

// 获取新鲜好物
export const getNewService = () => request.get('/home/new')

// 获取人气推荐
export const getHotService = () => request.get('/home/hot')

// 获取商品数据
export const getGoodsService = () => request.get('/home/goods')